package com.ostsm.advmainapplication;

import android.content.Intent;
import android.support.v7.app.AppCompatActivity;
import android.os.Bundle;
import android.util.Log;

import com.ostms.adv.activity.FaceDetectActivity;

public class MainActivity extends AppCompatActivity {

    @Override
    protected void onActivityResult(int requestCode, int resultCode, Intent data) {
        super.onActivityResult(requestCode, resultCode, data);
        //此处可以根据两个Code进行判断，本页面和结果页面跳过来的值
        if (requestCode == 1 && resultCode == 150) {
            String result = data.getStringExtra("keycodeMoney");
            Log.i("WXL","result ==== "+result);
        }

    }

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        //setContentView(R.layout.activity_main);//目前没有展示开机动画，或者初始化界面，直接跳转到广告界面即可
        Intent mIntent = new Intent(MainActivity.this, FaceDetectActivity.class);
        //MainActivity.this.startActivity(mIntent);

        startActivityForResult(mIntent, 1);
    }



}
